package org.ielse.frame;

import org.ielse.frame.util.LogUtil;

import android.app.Service;
import android.content.Intent;
import android.os.Binder;
import android.os.IBinder;

public class BaseService extends Service {

	private final IBinder mBinder = new LocalBinder();

	public class LocalBinder extends Binder {
		public BaseService getService() {
			return BaseService.this;
		}
	}

	@Override public IBinder onBind(Intent intent) {
		return mBinder;
	}

	@Override public void onCreate() {
		super.onCreate();
		LogUtil.d("onCreate()");
	}

	@Override public int onStartCommand(Intent intent, int flags, int startId) {
		LogUtil.d("onStartCommand()");
		return super.onStartCommand(intent, flags, startId);
	}

	@Override public void onDestroy() {
		LogUtil.d("onDestroy()");
		super.onDestroy();
	}

}
